package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RepairAuditMapper;
import com.ruoyi.system.domain.RepairAudit;
import com.ruoyi.system.service.IRepairAuditService;

/**
 * 报修审核Service业务层处理
 * 
 * @author hzl
 * @date 2025-03-18
 */
@Service
public class RepairAuditServiceImpl implements IRepairAuditService 
{
    @Autowired
    private RepairAuditMapper repairAuditMapper;

    /**
     * 查询报修审核
     * 
     * @param repairApplicationId 报修审核主键
     * @return 报修审核
     */
    @Override
    public RepairAudit selectRepairAuditByRepairApplicationId(Long repairApplicationId)
    {
        return repairAuditMapper.selectRepairAuditByRepairApplicationId(repairApplicationId);
    }

    /**
     * 查询报修审核列表
     * 
     * @param repairAudit 报修审核
     * @return 报修审核
     */
    @Override
    public List<RepairAudit> selectRepairAuditList(RepairAudit repairAudit)
    {
        return repairAuditMapper.selectRepairAuditList(repairAudit);
    }

    /**
     * 新增报修审核
     * 
     * @param repairAudit 报修审核
     * @return 结果
     */
    @Override
    public int insertRepairAudit(RepairAudit repairAudit)
    {
        return repairAuditMapper.insertRepairAudit(repairAudit);
    }

    /**
     * 修改报修审核
     * 
     * @param repairAudit 报修审核
     * @return 结果
     */
    @Override
    public int updateRepairAudit(RepairAudit repairAudit)
    {
        return repairAuditMapper.updateRepairAudit(repairAudit);
    }

    /**
     * 批量删除报修审核
     * 
     * @param repairApplicationIds 需要删除的报修审核主键
     * @return 结果
     */
    @Override
    public int deleteRepairAuditByRepairApplicationIds(Long[] repairApplicationIds)
    {
        return repairAuditMapper.deleteRepairAuditByRepairApplicationIds(repairApplicationIds);
    }

    /**
     * 删除报修审核信息
     * 
     * @param repairApplicationId 报修审核主键
     * @return 结果
     */
    @Override
    public int deleteRepairAuditByRepairApplicationId(Long repairApplicationId)
    {
        return repairAuditMapper.deleteRepairAuditByRepairApplicationId(repairApplicationId);
    }
}
